package com.wwlwxg.service;

import java.util.Date;

import org.apache.shiro.SecurityUtils;
import org.apache.shiro.authz.annotation.RequiresRoles;
import org.apache.shiro.session.Session;

public class ShiroService {
	@RequiresRoles({"admin"})
	public void testMethod() {
		Session session = SecurityUtils.getSubject().getSession();
		System.out.println("in service , value = " + session.getAttribute("key"));
		System.err.println("testMethod time : " + new Date());
	}
}
